* fileio.c (Fcopy_file): Don't diagnose fchown failures.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jul 2011 21:53:38 +0000 (14:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jul 2011 21:53:38 +0000 (14:53 -0700)
src/ChangeLog
src/fileio.c

index a3ff43de418a3a8ab7b2a61dc1903787171769f8..2942170dec04fcbaeca38e04dc1a28037bd1e0e1 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fileio.c (Fcopy_file): Don't diagnose fchown failures.  (Bug#9002)
+
 2011-07-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * process.c: Use the same condition for POLL_FOR_INPUT in both
index c6f8dfe4683e12bb705bfaca39cab1996c6cb032..de822cdb46686eefe39e30491773707e38d92315 100644 (file)
@@ -1959,8 +1959,8 @@ on the system, we copy the SELinux context of FILE to NEWNAME.  */)
      owner and group.  */
   if (input_file_statable_p)
     {
-      if (!NILP (preserve_uid_gid) && fchown (ofd, st.st_uid, st.st_gid) != 0)
-       report_file_error ("Doing chown", Fcons (newname, Qnil));
+      if (!NILP (preserve_uid_gid))
+       fchown (ofd, st.st_uid, st.st_gid);
       if (fchmod (ofd, st.st_mode & 07777) != 0)
        report_file_error ("Doing chmod", Fcons (newname, Qnil));
     }